export default ({ http }) => ({
  // 机构 - 列表
  getSchoolList(query, response) {
    return http.get('/school/list', query, response)
  },

  // 机构 - 主页
  getSchoolHome(id, response) {
    return http.get(`/school/${id}/home`, {}, response)
  },

  // 认证-页面
  getSchoolAuth(response) {
    return http.get('school/auth', {}, response)
  },

  // 认证-提交
  createSchoolAuth(query, response, error) {
    return http.post('school/auth', query, response, error)
  }
})
